package com.caishi.lkx.exam.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.caishi.lkx.exam.mapper.MaterialInfoMapper;
import com.caishi.lkx.exam.service.IMaterialInfoService;
import com.zzw.common.entity.IBaseMapper;

import com.caishi.lkx.user.model.MaterialInfoModel;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import javax.annotation.Resource;
import java.util.Map;

/**
 * @author by liyihua
 * @date : 2022-01-06 14:29
 */
@Service("MaterialInfoService")
public class MaterialInfoServiceImpl implements IMaterialInfoService {
    @Resource
    private MaterialInfoMapper mapper;


    @Override
    public IBaseMapper<MaterialInfoModel, String> getMapper() {
        return mapper;
    }


    @Override
    public IPage<MaterialInfoModel> myLikePage(IPage page, String userId) {
        return mapper.getMyLike(page,userId);
    }

    @Override
    public IPage<MaterialInfoModel> materialInfoByColumnIdPage(Page<MaterialInfoModel> page, Map<String, Object> param) {
        return mapper.materialInfoByColumnIdPage(page,param);
    }
}
